package idiet.bean;

import java.io.Serializable;
import javax.persistence.*;

import java.util.List;


/**
 * The persistent class for the customer_nurse_meal database table.
 * 
 */
@Entity
@Table(name="customer_nurse_meal")
public class CustomerNurseMeal implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	private String alias;

	private String comment;

	private String effect;

	private String feature;

	private String name;

	private String procedure;

	@Column(name="resource_id")
	private int resourceId;
	
	@Column(name="taste_id")
	private MealTaste mealTaste;

	private int version;

	@Column(name="version_comment")
	private String versionComment;

	//bi-directional many-to-one association to MealFamily
	@ManyToOne
	@JoinColumn(name="meal_family_id")
	private MealFamily mealFamily;

	//bi-directional many-to-one association to CustomerNurseMealRecipe
	@OneToMany(mappedBy="customerNurseMeal")
	private List<CustomerNurseMealRecipe> customerNurseMealRecipes;

	//bi-directional many-to-one association to CustomerNurseMenu
	
	/*@ManyToOne
	@JoinTable(name="customer_nurse_menu",
	joinColumns=@JoinColumn(name="nurse_id"),
	inverseJoinColumns=@JoinColumn(name="meal_id"))
	private CustomerNurse customerNurse;*/
	@ManyToOne
	@JoinColumn(name="customer_nurse_id")
	private CustomerNurse customerNurse;
	
	@ManyToMany
	@JoinTable(name="customer_nurse_menu",
	joinColumns=@JoinColumn(name="meal_id"),
	inverseJoinColumns=@JoinColumn(name="menu_type_id"))
	private List<NurseMealType> nurseMealTypes;
	
	public CustomerNurseMeal() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAlias() {
		return this.alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getEffect() {
		return this.effect;
	}

	public void setEffect(String effect) {
		this.effect = effect;
	}

	public String getFeature() {
		return this.feature;
	}

	public void setFeature(String feature) {
		this.feature = feature;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProcedure() {
		return this.procedure;
	}

	public void setProcedure(String procedure) {
		this.procedure = procedure;
	}

	public int getResourceId() {
		return this.resourceId;
	}

	public void setResourceId(int resourceId) {
		this.resourceId = resourceId;
	}

	public MealTaste getMealTaste() {
		return mealTaste;
	}

	public void setMealTaste(MealTaste mealTaste) {
		this.mealTaste = mealTaste;
	}

	public int getVersion() {
		return this.version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public String getVersionComment() {
		return this.versionComment;
	}

	public void setVersionComment(String versionComment) {
		this.versionComment = versionComment;
	}

	public MealFamily getMealFamily() {
		return this.mealFamily;
	}

	public void setMealFamily(MealFamily mealFamily) {
		this.mealFamily = mealFamily;
	}

	public List<CustomerNurseMealRecipe> getCustomerNurseMealRecipes() {
		return this.customerNurseMealRecipes;
	}

	public void setCustomerNurseMealRecipes(List<CustomerNurseMealRecipe> customerNurseMealRecipes) {
		this.customerNurseMealRecipes = customerNurseMealRecipes;
	}

	/*public CustomerNurse getCustomerNurse() {
		return customerNurse;
	}

	public void setCustomerNurse(CustomerNurse customerNurse) {
		this.customerNurse = customerNurse;
	}*/

	public List<NurseMealType> getNurseMealTypes() {
		return nurseMealTypes;
	}

	public CustomerNurse getCustomerNurse() {
		return customerNurse;
	}

	public void setCustomerNurse(CustomerNurse customerNurse) {
		this.customerNurse = customerNurse;
	}

	public void setNurseMealTypes(List<NurseMealType> nurseMealTypes) {
		this.nurseMealTypes = nurseMealTypes;
	}
	
}